GestureDetectorCompat
constructor(@NonNull context: @NonNull Context, @NonNull listener: @NonNull GestureDetector.OnGestureListener)(source)
Creates a GestureDetectorCompat with the supplied listener. As usual, you may only use this constructor from a UI thread.
Parameters
context
the application's context
listener
the listener invoked for all the callbacks, this must not be null.
See also
constructor(@NonNull context: @NonNull Context, @NonNull listener: @NonNull GestureDetector.OnGestureListener, @Nullable handler: @Nullable Handler)(source)
Creates a GestureDetectorCompat with the supplied listener. As usual, you may only use this constructor from a UI thread.
Parameters
context
the application's context
listener
the listener invoked for all the callbacks, this must not be null.
handler
the handler that will be used for posting deferred messages